package com.smartbus.bus.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.smartbus.common.annotation.Excel;
import com.smartbus.common.core.domain.BaseEntity;

/**
 * 公交线路基础信息，存储各条公交线路的基本配置和运营参数对象 bus_routes
 * 
 * @author ruoyi
 * @date 2025-09-24
 */
public class BusRoutes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID，自增 */
    private Long id;

    /** 线路编号，如1路、2路等 */
    @Excel(name = "线路编号，如1路、2路等")
    private String routeNumber;

    /** 线路名称，如火车站-汽车站专线 */
    @Excel(name = "线路名称，如火车站-汽车站专线")
    private String routeName;

    /** 起始站点ID，关联bus_stations表 */
    @Excel(name = "起始站点ID，关联bus_stations表")
    private Long startStationId;

    /** 终点站点ID，关联bus_stations表 */
    @Excel(name = "终点站点ID，关联bus_stations表")
    private Long endStationId;

    /** 线路总站点数 */
    @Excel(name = "线路总站点数")
    private Long totalStations;

    /** 线路总距离(公里) */
    @Excel(name = "线路总距离(公里)")
    private BigDecimal routeDistance;

    /** 预估行程时间(分钟) */
    @Excel(name = "预估行程时间(分钟)")
    private Long estimatedDuration;

    /** 线路状态，1-运营中 0-停运 */
    @Excel(name = "线路状态，1-运营中 0-停运")
    private Integer isActive;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 起始站点名称 */
    private String startStationName;

    /** 终点站点名称 */
    private String endStationName;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setRouteNumber(String routeNumber) 
    {
        this.routeNumber = routeNumber;
    }

    public String getRouteNumber() 
    {
        return routeNumber;
    }

    public void setRouteName(String routeName) 
    {
        this.routeName = routeName;
    }

    public String getRouteName() 
    {
        return routeName;
    }

    public void setStartStationId(Long startStationId) 
    {
        this.startStationId = startStationId;
    }

    public Long getStartStationId() 
    {
        return startStationId;
    }

    public void setEndStationId(Long endStationId) 
    {
        this.endStationId = endStationId;
    }

    public Long getEndStationId() 
    {
        return endStationId;
    }

    public void setTotalStations(Long totalStations) 
    {
        this.totalStations = totalStations;
    }

    public Long getTotalStations() 
    {
        return totalStations;
    }

    public void setRouteDistance(BigDecimal routeDistance) 
    {
        this.routeDistance = routeDistance;
    }

    public BigDecimal getRouteDistance() 
    {
        return routeDistance;
    }

    public void setEstimatedDuration(Long estimatedDuration) 
    {
        this.estimatedDuration = estimatedDuration;
    }

    public Long getEstimatedDuration() 
    {
        return estimatedDuration;
    }

    public void setIsActive(Integer isActive) 
    {
        this.isActive = isActive;
    }

    public Integer getIsActive() 
    {
        return isActive;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt()
    {
        return updatedAt;
    }

    public void setStartStationName(String startStationName)
    {
        this.startStationName = startStationName;
    }

    public String getStartStationName()
    {
        return startStationName;
    }

    public void setEndStationName(String endStationName)
    {
        this.endStationName = endStationName;
    }

    public String getEndStationName()
    {
        return endStationName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("routeNumber", getRouteNumber())
            .append("routeName", getRouteName())
            .append("startStationId", getStartStationId())
            .append("endStationId", getEndStationId())
            .append("totalStations", getTotalStations())
            .append("routeDistance", getRouteDistance())
            .append("estimatedDuration", getEstimatedDuration())
            .append("isActive", getIsActive())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
